﻿using System;

namespace Nb.LMS.Domains.Accounts
{
    public class Account
    {
        public Guid Id { get; set; }
        public string UserId { get; set; }
        public string Login { get; set; }
        public string Password { get; set; }
        public string PasswordSalt { get; set; }
        public PasswordFormat PasswordFormat { get; set; }
        public bool IsLocked { get; set; }
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 用户来源，表示是否外部导入等 //外部，内部，某厂商等
        /// </summary>
        public string FromSource { get; set; }

        public bool ValidatePassword(string clearText)
        {
            //todo...
            var pass = clearText;
            return false;
        }
    }
}
